package com.home.jinlanhua.utils;

/**
 * 常量类
 */
public class Const {

    // 系统版本apikey
    public static final String DEFAULT_KEY = "gEBewt2ja7BkdC67NvSnzTzd2ih9ov2QjBXV";

    // 短信相关参数
    public static final String APP_KEY = "f632372226827b32e6730fdc1a70f3c4";
    public static final String SMS_SIGN = "半方科技";
    public static final int TEMPLETEID = 45875;
    public static final int APP_ID = 1400043408;
    public static final String NATION_CODE = "86";

    // 对象存储相关参数
    public static final String FILE_SECRET_ID= "AKIDOjsreF6sjQvFNIxhGdopfJl3Ml28blId";
    public static final String FILE_SECRET_KEY= "H0e7RiojBTZTAg5Yqwt370heR4Yr3EF8";
    public static final String FILE_REGION= "ap-guangzhou";
    public static final String FILE_BUCKET= "banfang-1252936237";
    public static final String FILE_FOLDER= "SmartKindergarten";
//    public static final String FILE_CACHE_PATH = "D:\\";
    // 线上记得将缓存路径换成这个
    public static final String FILE_CACHE_PATH = "/usr/java/cache/";
    public static final String FILE_URL_HEAD = "http://cos.banfang.info/";

    // 人脸识别相关参数
    public static final String FACE_UPLOAD_URL = "https://6258e173550fa90d.huiyan.pro/smbBridge/regFacePic";


    // 微信参数相关
    public static final String WX_SMALLPROGRAM_ACCESS_TOKEN = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=";
    public static final String SMALLPROGRAM_USERDETAILS = "https://api.weixin.qq.com/sns/jscode2session";
    public static final String SEND_MESSAGE = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=";
    public static final Long EXCEPTION_IN_OR_OUT_NOTICE = 1L; // 异常出入通知的id
    public static final Long REACH_SCHOOL_NOTICE = 2L; // 到校提醒
    public static final Long STUDENT_OUT_SCHOOL_NOTICE = 3L; // 幼儿离园提醒
    public static final Long USER_BIND_SUCCESS_NOTICE = 4L; // 用户绑定成功通知
    public static final Long USER_UNBIND_NOTICE = 5L; // 用户解除绑定通知
    public static final Long EVERY_DAY_WORK_STATUS_NOTICE = 6L; // 班主任每日班级考勤提醒
    public static final Long STUDENT_REACH_SCHOOL_NOTICE = 7L; // 幼儿入园提醒
    public static final Long OUT_SCHOOL_NOTICE = 8L; // 离园考勤消息通知
    public static final Long WORK_RESULT_NOTICE = 9L; // 考勤结果通知
    public static final Long PARENT_REACH_SCHOOD_NOTICE = 10L; // 家长到园提醒
    public static final String TOKEN_FOR_MESSAGE = "banfang";
    public static final String ENCODINGAESKEY = "1WJLkSI5kOMNEH3EOTRMkeCG22jR1359teuhby51a5R";
    public static final String APPID_FOR_MESSAGE = "wxb9ae84389a6ac79d";
    public static final String GET_USER_MESSAGE = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=";


    // TOKEN相关参数,注意,这个tokenkey是使用十六进制的算法加密而成的,需要首先用desutils里面的hextobytes的方法转正bytes数组才能正常的加解密
    public static final String TOKEN_KEY = "616b385b859d753e";
    public static final Long ADMIN_PASS_TIME = 604800000L;
    public static final Long SMALLPROGRAM_PASS_TIME = 86400000L;

    public static void main(String[] args) {
        System.out.println(ENCODINGAESKEY.length());
    }
}
